﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SSISForSAPComponents
{
    public partial class ImportStructureEdit : Form
    {
        System.Data.DataTable _table =null ;
        public ImportStructureEdit()
        {
            InitializeComponent();
        }
        public ImportStructureEdit(System.Data.DataTable table):this()
        {
            _table = table; 
        }
        private void ImportStructureEdit_Load(object sender, EventArgs e)
        {
            try
            {
                this.dataGridView1.DataSource = _table;
            }
            catch (Exception ex)
            {
                
                throw ex;
            }
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            this._table.AcceptChanges();
            this.Close(); 
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this._table.RejectChanges();
            this.Close(); 
        }
    }
}
